<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Tag extends MY_Controller {
    
    public function index()
    {
        $this->setHeader('title', urldecode($this->uri->segment(2)));
        $this->navigation();
        
        $parm['where'] = array(
            'types'=>'topic',
            'm.slug'=>urldecode($this->uri->segment(2))
        );
        $thisData['texts'] = $this->Entries->getTopic($parm);
        $thisData['tags'] = $this->tags();
        $thisData['hot'] = $this->hots();
        $thisData['culture'] = $this->culture();
        $thisData['policy'] = $this->policy();
        $thisData['news'] = $this->news();
        $this->load->view('category' ,$thisData);
    }
    
}